/**
 *  @file SDLLostSection.h
 *
 *  @date 21-dec-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLLOSTSECTION_H_
#define SDLLOSTSECTION_H_

#include "SDLApplicationSection.h"
#include "SDLApplication.h"
#include "SDLStaticRepresentation.h"
#include "SDLImageRepresentation.h"
#include "SDLWindow.h"
#include "SDLTimer.h"

namespace si_sdl
{
/**
 * This section contains a splash with an explosion that is shown
 * for a short amount of time when the player loses.
 */
class SDLLostSection: public si_sdl::SDLApplicationSection
{
public:
	SDLLostSection(SDLApplication& parent, SDLWindow& win);
	virtual ~SDLLostSection();

	virtual void newFrame(double timeSinceLastFrame);
	virtual void onSDLEvent(SDL_Event& event);

	virtual void youreStarting(){fTimer.reset();};

private:
	SDLImageRepresentation fRepresentation;
	SDLTimer fTimer;

};

}

#endif /* SDLSPLASHSECTION_H_ */
